dxl examples with variable type "InPartition".

Hello 

 

 

I have a topic open on this in the general discussion 

https://www.ibm.com/developerworks/community/forums/html/topic?id=64d3edad-4b72-4645-8585-214a51059d69#a5d296ed-3bb7-485d-a539-6b092acc022a

The symptoms are either 1 or 2 in Louies answer

 

Has anyone seen or written any DXL examples that modifty Partition information?

The dxl help has just bare definitions without examples.

 

rgds

 


MyDeveloerWorks - Thu May 16 04:53:25 EDT 2013

Re: dxl examples with variable type "InPartition".
llandale - Thu May 16 10:54:17 EDT 2013

Never touched it.

Let me scribble a guess:  In the Home database...

  • Project pHome = current
  • PartitionDefinition pd
  • PartitionModule pm
  • for pd in pHome do
  • {  print "PartitionDef\t" (pd.name) "\t[" (pd.description) "]\t...modules...\n"
  •    for pm in pd do
  •    {  print "\t" (pm.name) "\n"
  •    }
  • }

In the Away Database (yours it appears):

  • Project pHome = current
  • InPartition pi
  • string InPart_Name
  • PartitionDefinition pd
  • PartitionModule pm
  • for pi in pHome do
  • {  InPart_Name = pi.name
  •    pd = loadInPartitionDef(pHome, InPart_Name)
  •    print "InPartition\t" InPart_Name "\t[" (pd.description) "]\t...modules...\n"
  •     for pm in pd do
  •    {  print "\t" (pm.name) "\n"
  •    }
  • }

-Louie